package com.inspur.his.mapper;

import com.inspur.his.pojo.User;
import com.inspur.his.pojo.UserExt;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

@Resource
public interface UserMapper {
    /**
     * 登录方法
     * @param map
     * @return
     */
    public User getUserByNameAndPass(HashMap map);
    public void updatePwd(HashMap map);
    public List<User> userList(HashMap map);
    public void userAdd(User user);
    public User getUserById(String id);//根据id查询用户
    public void updateUser(User user);//修改用户信息.
    public List<User> getUserByName(String username);//根据用户名查询用户
    public void changeStatus(HashMap map);//修改用户状态

    public List<UserExt> getUserByRole();
}